# coding:utf8
from django.conf.urls import url
from . import views

urlpatterns = [
    # /goods/index/
    url(r'^index/$', views.IndexView.as_view()),
    url(r'^categories/(?P<category_id>\d+)/hotskus/$', views.HostGoodsView.as_view()),
    url(r'^categories/(?P<category_id>\d+)/skus/$', views.GoodsListView.as_view()),
]

from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('search', views.SKUSearchViewSet, base_name='skus_search')

urlpatterns += router.urls
